﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Portal.Nhibernate.Repository;

namespace Portal.Web.Admin.Article
{
    public partial class CreateTechnologyConsultingControl : System.Web.UI.Page
    {
        private readonly IArticleRepository<IArticle> _articleRepository;

        public CreateTechnologyConsultingControl()
        {
            _articleRepository = new ArticleRepository();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            Model = _articleRepository.CreateEntity();
            Model.CategoryId = ((int)CategoryArticleEnum.TechnologyConsulting).ToString(CultureInfo.InvariantCulture);
        }

        public IArticle Model { get; set; }
    }
}